package com.lab.book.common.enums;

public enum UserEnum {
	Exist(0, "用户名已经存在"), 
	Forbid(1, "禁止登录"), 
	Matching(3, "用户名和密码不匹配"),
	NoRegister(4,"服务器停止注册"),
	Error(5,"服务器发生错误"),
	NoExist(6, "用户名不存在"),
	LoginOK(7,"登录成功"),
	NoAuth(8,"你没有权限搜索Mike的资料"),
	PWDDif(9,"密码和确认密码不一样"),
	ValidateCode(555,"参数验证未通过,具体查看数据信息");

	private Integer code;
	private String desc;

	private UserEnum(Integer code, String desc) {
		this.code = code;
		this.desc = desc;
	}

	public Integer getCode() {
		return code;
	}

	public String getDesc() {
		return desc;
	}
}
